package v1

import (
	"github.com/gogf/gf/v2/frame/g"
)

type OrderReq struct {
	g.Meta   `path:"/api/v1/trade/create" method:"post" tags:"交易" summary:"下单"`
	Amount   float64 `v:"required" dc:"支付金额"`
	Wallet   string  `v:"required" dc:"收款钱包"`
	Callback string  `v:"required" dc:"回调地址"`
	Network  string  `v:"required|ci|in:TRC20,BEP20,Polygon,Solana" dc:"网络，支持(TRC20,BEP20,Polygon,Solana)"`
	Extends  string  `dc:"自定义数据,原样返回"`
}

type OrderRes struct {
	PayAmount float64 `dc:"应当支付金额" json:"pay_amount"`
}
